<?php
namespace app\model;
use core\lib\model;

/**
* mesModel
*/
class mesModel extends model
{
	public $table = 'mes';
	public function all()
	{
		return $this->select($this->table, '*');
	}
	public function addOne($data)
	{
		return $this->insert($this->table, $data);
	}
	public function delOne($id)
	{
		$res = $this->delete($this->table, array(
			'id' => $id
		));
		if ($res == true) {
			return true;
		} else {
			return false;
		}
	}
}